home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / textattr.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.5 KB  |  38 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * ATextAttr wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_TextAttr_H
  12. #define ASAP_TextAttr_H
  13.  
  14. extern "C"
  15. {
  16.  #include <Proto/Graphics.h>
  17. }
  18.  
  19. class ATextAttr : public TextAttr
  20. {
  21.  public:
  22.  inline WORD WeighTAMatch(TextAttr *reqTextAttr, TagItem *targetTags);
  23.  inline WORD WeighTAMatchTags(TextAttr *reqTextAttr, unsigned long tag1Type, ...);
  24. };
  25.  
  26. //-----------------------------------------------------------------------------
  27. WORD ATextAttr::WeighTAMatch (TextAttr *reqTextAttr, TagItem *targetTags )
  28. {
  29.  return ::WeighTAMatch (reqTextAttr, this, targetTags);
  30. }
  31. //-----------------------------------------------------------------------------
  32. WORD ATextAttr::WeighTAMatchTags (TextAttr *reqTextAttr, unsigned long tag1Type, ...)
  33. {
  34.  return ::WeighTAMatch(reqTextAttr, this, (TagItem *) &tag1Type);
  35. }
  36.  
  37. #endif
  38.